<?php

/**
 * sfGuardGroup form.
 *
 * @package    form
 * @subpackage sf_guard_group
 * @version    SVN: $Id: sfGuardGroupForm.class.php 12896 2008-11-10 19:02:34Z fabien $
 */
class sfGuardGroupForm extends BasesfGuardGroupForm
{
  public function configure()
  {
    unset($this['created_at'],$this['updated_at'],$this['deleted_at']);

    $this->widgetSchema['sf_guard_group_permission_list']->setLabel('Permisos');
    $this->widgetSchema['sf_guard_group_permission_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
    $this->widgetSchema['sf_guard_group_permission_list']->setOption('renderer_options', array('label_unassociated' => 'Permisos Disponibles', 'label_associated' => 'Permisos Seleccionados'));
    $this->widgetSchema['sf_guard_user_group_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
    $this->widgetSchema['sf_guard_user_group_list']->setOption('renderer_options', array('label_unassociated' => 'Usuarios Disponibles', 'label_associated' => 'Usuarios Seleccionados'));
    $this->widgetSchema->setLabels(array(
        'name' => 'Nombre',
        'description' => 'Descripción',
        'sf_guard_user_group_list' => 'Usuarios'
    ));
  }
}
